import Mock from 'mockjs'
// import loginMock from './loginMock.js'
// console.log('loginMock', loginMock.login)

const login = (config) => {
  // console.log('config', config)
  // console.log('config.body', JSON.parse(config.body))
  // config.headers['Authorization'] = 'Bearer ' + '123'
  return JSON.parse(config.body)
}

// 登录
Mock.mock('/cjp/isc/logins', 'post', login)

// console.log('data', data)
// Mock.mock('/logins', 'post', loginMock.login)
